// dlg.txt

begintalkscript;

variables;

begintalknode 1;
	state = -1;
	nextstate = -1;
	condition = get_sdf(80,1) == 0;
	question = "special";
	text1 = "You enter this sealed complex, and the first thing that you find is a shielding ring. This is the sort of buffer zone Shapers generally put around places where particularly intense experiments are taking place.";
	text2 = "Based on how difficult this complex was to enter, the presence of this security barrier, and the raw power you can sense in the air, you suspect that some very powerful magical work was going on here.";
	text3 = "And then it was sealed up. Worrying.";
	action = SET_SDF 80 1 1;

begintalknode 2;
	state = -1;
	nextstate = -1;
	condition = get_sdf(80,2) == 0;
	question = "special";
	text1 = "This corridor was once used for storage of supplies brought to the complex. Heavy raw materials were transported on carts. The tracks are still here, rusty and crumbling.";
	text2 = "However, in the alcoves, someone has transported energy crystals and Shaping platforms. This happened recently ... They are still free of dust or mold.";
	text3 = "At this point in your travels, it is impossible not to suspect a trap.";
	action = SET_SDF 80 2 1;

begintalknode 3;
	state = -1;
	nextstate = -1;
	condition = get_sdf(80,3) == 0;
	question = "special";
	text1 = "At last, you enter the main part of the complex. It was definitely a laboratory. Maybe to research creations, maybe to make them. It must have been built by the rebels. Otherwise, you definitely would have seen a Shaper symbol by now.";
	text2 = "This place has completely fallen out of their control. You can hear and smell out of control creations all over the place. Powerful creations. Whatever research was taking place here, it was far beyond the Lifecrafters' ability to control it.";
	text3 = "And then it was sealed up. But someone has still been maintaining the place and caring for its defenses. Someone is still master here. But who?";
	text4 = "Even after all you have been through, the power you can sense here makes you very nervous. This is probably a place for only the most skilled warriors to explore. You would not have to regret leaving and never coming back.";
	action = SET_SDF 80 3 1;

begintalknode 4;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "You hear a sudden, deep, booming noise. It echoes from the shadows behind you. It sounded like the grim, familiar sound of a gate slamming shut.";
	text2 = "The crystals around flash into life. They are surrounded by clouds of sparks. You smell essence ...";

begintalknode 5;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The crystals in the hall, their power depleted, begin to dim. The passage cools down. The trap defending these halls is out of energy.";

begintalknode 6;
	state = -1;
	nextstate = -1;
	condition = gf(80,6) == 0 && char_ok(33);
	question = "special";
	text1 = "You enter a thoroughly wrecked laboratory. While most of the equipment and supplies have been smashed, one of the experiments still remains.";
	text2 = "There is a drakon standing on a platform in the western alcove. It is unable to walk. It is held in place by the tubes and long slivers of crystal that enter its body, feeding it power and keeping it immobile.";
	text3 = "When you enter the lab, a conduit sends a surge of energy into the creature, alerting it and repairing some damage recently sustained when destroying some rogue.";
	text4 = "The drakon looks at you. It appears to have gone completely mad. It lets out a long, incoherent roar. Then it begins to wave its arms about, Shaping something.";
	text5 = "You wonder how angry this drakon made Ghaldring for it to be allowed to end up here.";
	action = SET_SDF 80 6 1;
	
begintalknode 7;
	state = -1;
	nextstate = -1;
	condition = gf(80,7) == 0 && char_ok(36) && char_ok(37);
	question = "special";
	text1 = "There is a dome to the west. Two rows of benches face two Shaping platforms. New creations could be brought here for examination and testing. Seeing it brings back unhappy memories of the Foundry.";
	text2 = "Two essence constructs float a few inches above the platforms. The floor under them is covered with an undisturbed layer of dust and mold. The other rogues have had the sense to not disrupt them.";
	text3 = "When they sense you nearby, however, they immediately become active. They float toward you, eager to feed upon your life.";
	text4 = "As they get closer, you can see that they are connected by a faint, insubstantial tether of light.";
	action = SET_SDF 80 7 1;
	
begintalknode 8;
	state = -1;
	nextstate = -1;
	condition = gf(80,8) == 0;
	question = "special";
	text1 = "This chamber contains a strange Shaped construct, of a variety you don't remember ever seeing. Its upper half is vaguely humanoid. Its lower half is a knotty tangle of thick fibers, half flesh, half plant.";
	text2 = "The creature appears to be dormant. It leans heavily to one side. Its arms twitch slowly, but it shows no signs of recognizing its surroundings.";
		action = SET_SDF 80 8 1;

begintalknode 9;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "Suddenly, the hideous construct springs to life. Its body rights itself, and its arms begin a constant, frenzied flailing. The room starts to grow very hot.";

begintalknode 10;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The construct has taken too much damage to sustain itself. Its upper body flops to one side. A foul odor immediately begins to rise from the fleshy tangle underneath.";
	text2 = "You notice the faint glint of metal in the fleshy mass. Wincing, you pluck it out. It is a key. It is made of steel, twisted in a peculiar fashion.  You scrape off most of the greenish goop and take it with you.";
	code =
		set_spec_item(54,1);
	break;

begintalknode 11;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "__";

begintalknode 12;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "__";

begintalknode 13;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "__";

begintalknode 14;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "__";

begintalknode 15;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "__";
	
//

begintalknode 30;
	state = -1;
	nextstate = 30;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode 31;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 32;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 33;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 34;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 35;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 36;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 37;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 38;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 39;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 40;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 41;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 42;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 43;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 44;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
//

begintalknode 50;
	state = -1;
	nextstate = 50;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode 51;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

	
begintalknode 52;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 53;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 54;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 55;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 56;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 57;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 58;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 59;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 60;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 61;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 62;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 63;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 64;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

//

begintalknode 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode 71;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

//

begintalknode 90;
	state = -1;
	nextstate = 90;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode 91;
	state = 90;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
		